﻿namespace Patterns.Creational.AbstractFactory
{
    /// <summary>
    /// Testing client class for abstract factory pattern.
    /// </summary>
    public class Client
    {
        /// <summary>
        /// Testing entry point.
        /// </summary>
        public void TestPattern(IAbstractFactory factory)
        {
            var productA = factory.CreateProductA();
            var productB = factory.CreateProductB();

            productA.PrintName();
            productB.PrintName();
        }
    }
}
